<%@ page import="com.ld.manageBook.service.BookService" %>
<%@ page import="com.ld.manageBook.service.impl.BookServiceImpl" %><%--
  Created by IntelliJ IDEA.
  User: 刘邓
  Date: 2023-06-02
  Time: 9:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>删除图书</title>
</head>
<body>
<%! private BookService bookService = new BookServiceImpl();
%>
<%
  int id = Integer.parseInt(request.getParameter("id"));
  int i = bookService.deleteBookById(id);

  if(i == 0){
    out.println("删除失败,请稍后重试<br></br>");
  }
  if(i == 1){
    out.println("删除成功<br></br>");
  }
  out.println("<a href='/home/manageBook.jsp'>返回图书管理页面</a>");
%>
</body>
</html>
